package com.mbti.youmore.mapper;

import com.mbti.youmore.entity.History;
import com.mbti.youmore.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import lombok.Data;

import java.util.Date;

/**
* @author Guqier
* @description 针对表【t_user】的数据库操作Mapper
* @createDate 2024-05-08 20:30:45
* @Entity com.mbti.youmore.entity.User
*/
public interface UserMapper extends BaseMapper<User> {
    /**
     * 获取2积分
     * @param id 用户ID
     * @return 积分更改情况
     */
    int updateIntegralOneByUserId(int id);
    /**
     * 获取5积分
     * @param id 用户ID
     * @return 积分更改情况
     */
    int updateIntegralTwoByUserId(int id);
    int updateSiginDateByUserId(int id, Date lastSignTime);
    int updatePostDateByUserId(int id, Date lastPostTime);
    int updateBrowseDateByUserId(int userId, Date lastBrowseTime);
    /**
     * 扣对应积分积分
     */
    int updateIntegralthreeByUserId(int id,int val);


}




